import {createRouter,createWebHistory} from 'vue-router'

import BusinessInfo from "@/components/business/BusinessInfo.vue"
import BusinessList from "@/components/business/BusinessList.vue"
import index from "@/components/index.vue"
import Login from "@/components/Login.vue";
import Order from "@/components/Order.vue";
import Payment from "@/components/Payment.vue";
import UserAddress from "@/components/UserAddress.vue";
import AddUserAddress from "@/components/AddUserAddress.vue";
import EditUserAddress from "@/components/EditUserAddress.vue";
import OrderList from "@/components/OrderList.vue";
import Register from "@/components/Register.vue";
import A from "@/components/A.vue"
import B from "@/components/B.vue"
import Info from "@/components/Info.vue";
const routes=[
    {path:'/businessInfo',component:BusinessInfo},
    {path: '/businessList',component: BusinessList},
    {path: '/index',component: index},
    {path: '/',component: Login},
    {path: '/order',component: Order},
    {path: '/payment',component: Payment},
    {path: '/userAddress',component: UserAddress},
    {path: '/addUserAddress',component: AddUserAddress},
    {path: '/editUserAddress',component: EditUserAddress},
    {path: '/orderList',component: OrderList},
    {path: '/register',component: Register},
    {path: '/A',component: A},
    {path: '/B',component: B},
    {path: '/info',component: Info}
]


const router=createRouter({
    history:createWebHistory(),
    routes:routes
})

export default router